<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="demo">
    <div class="ring"></div>
  </div>
</body>
</html>
<style>
  *{
    margin: 0;
    padding: 0;
  }
  body{
    
  }
  .demo{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #000;
  }
  .ring{
    position: absolute;
    width: 200px;
    height: 200px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background:linear-gradient(#d1ac16,transparent 75%);
    border-radius: 50%;
    animation: rotate 1s linear infinite;
  }
  .ring::after{
    content: "";
    position: absolute;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: #fefdfd;
    border-radius: 50%;
  }
  @keyframes rotate {

    /* 需要兼容的自行补入噢 */
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
      filter: hue-rotate(360deg);
    }
  }
</style>